<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:ui="http://java.sun.com/jsf/facelets">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Data</title>
</head>
<body>
<h:form>
		<p>Informe seu Nome: <h:inputText id="nome" value="#{dataBean.nome}" /></p>
		<p>Informe data Nascimento:
		<h:inputText id="dia" maxlength="2" size="3" value="#{dataBean.dia}" />
		<h:inputText id="mes" maxlength="2" size="3" value="#{dataBean.mes}"/>
		<h:inputText id="ano" maxlength="4" size="3" value="#{dataBean.ano}" /></p>
	<h:commandButton value="enviar" action="#{dataBean.idade}"/>
</h:form>
<p>Mensagem: #{dataBean.msg}</p>
<p>Olá #{dataBean.nome} Sua idade é #{dataBean.resposta}</p>
</body>
</html>